using System;
namespace Parking
{
	public class Ticket
	{
		private static int numMax = 0;
		
		public Ticket ()
		{
			numero = numMax++;
			heure_arrivee = DateTime.Now;
		}

		public DateTime heure_arrivee { get; private set; }
		
		public TimeSpan duree_stationnement { get {
			return (DateTime.Now - heure_arrivee);
			}
		}
		
		public int numero { get; private set; }
	}
}
 